package com.tenbent.product.center.insures.dto.search;

import com.tenbent.product.base.dto.search.BaseSearchPageDto;
import com.tenbent.product.base.query.page.Pageable;
import com.tenbent.product.center.insures.bo.SkuPrice;

import java.math.BigDecimal;

/**
 * sku价格信息查询DTO
 *
 * @author Randy
 *
 *         Created by ThinkPad on 2017/8/29.
 */
public class SkuPriceSearchPageDto extends BaseSearchPageDto {

	/** 产品ID **/
	private Integer productId;

	/** sku值组合，下划线（_）拼接 **/
	private String riskValues;

	/** 单位价格 **/
	private BigDecimal unitPrice;

	/** 总价格 **/
	private BigDecimal totalPrice;

	@Override
	public Pageable transToPageable() {
		SkuPrice skuPrice = new SkuPrice();
		skuPrice.setRiskValues(this.getRiskValues());
		skuPrice.setProductId(this.getProductId());
		skuPrice.setUnitPrice(this.getUnitPrice());
		skuPrice.setTotalPrice(this.getTotalPrice());
		Pageable pageable = new Pageable(this.getPageNum(), this.getPageSize());
		pageable.setParamBizObject(skuPrice);
		return pageable;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getRiskValues() {
		return riskValues;
	}

	public void setRiskValues(String riskValues) {
		this.riskValues = riskValues;
	}

	public BigDecimal getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(BigDecimal unitPrice) {
		this.unitPrice = unitPrice;
	}

	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}
}
